-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add name and symbol to the asset_data table #54
Conversation
Build is failing |
let raw_name = asset_data.raw_name.clone(); | ||
match String::from_utf8(raw_name) { | ||
Ok(s) => Some(s), | ||
Err(_) => Some(name.clone()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under what scenarios would this happen? Do you have an example NFT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can fail if the utf8 check validation of the string fails. I don't have an example nft
@@ -151,6 +151,35 @@ pub fn safe_select<'a>( | |||
.and_then(|v| v.pop()) | |||
} | |||
|
|||
#[cfg(feature = "fetch-raw-fields")] | |||
async fn process_raw_fields( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this function be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, I am using it for testing purpose. Its disabled due the compile/build time flag. However, based on a new optional field in the api, we will extract the raw fields or the sanitised fields
Test was failing. Fixed it. |
No description provided.